Skip to content

gh-156101: Fix sqlite3 Cursor.arraysize on a failed assignment - #156105

Merged
serhiy-storchaka merged 3 commits into
python:mainfrom
serhiy-storchaka:gh-156101-sqlite-arraysize
Aug 21, 2026
Merged

gh-156101: Fix sqlite3 Cursor.arraysize on a failed assignment#156105
serhiy-storchaka merged 3 commits into
python:mainfrom
serhiy-storchaka:gh-156101-sqlite-arraysize

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 20, 2026

Copy link
Copy Markdown
Member

PyLong_AsUInt32() stores 0 in the target on error, so assigning a too large value left arraysize set to 0.
The value is now converted into a local variable first, as in 3.13.

PyLong_AsUInt32() stores 0 in the target on error, so the attribute was
clobbered when the assigned value was too large.
@serhiy-storchaka
serhiy-storchaka merged commit 53760b3 into python:main Aug 21, 2026
54 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@serhiy-storchaka
serhiy-storchaka deleted the gh-156101-sqlite-arraysize branch August 21, 2026 07:13
@bedevere-app

bedevere-app Bot commented Aug 21, 2026

Copy link
Copy Markdown

GH-156156 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 21, 2026
@bedevere-app

bedevere-app Bot commented Aug 21, 2026

Copy link
Copy Markdown

GH-156157 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant